package com.bw.module_live.api

import com.bw.lib_net.BaseResponse
import com.bw.module_live.anchor.model.entity.CreateLiveEntity
import com.bw.module_live.fans.model.entity.GoodsListEntity
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * @author ytx
 * @date 2025-10-27 08:12
 * @description
 */
interface LiveApi {
    /**
     * 创建直播间
     */
    @POST("/liveRoomAnchor/createLiveRoom")
    suspend fun createLiveRoom(@Body body: RequestBody):BaseResponse<CreateLiveEntity>

    /**
     * 加入直播间
     */
    @POST("/liveRoom/enterLiveRoom")
    suspend fun enterLiveRoom(@Query("roomId") roomId:String):BaseResponse<Boolean>

    /**
     * 退出直播间
     */
    @POST("/liveRoom/exitLiveRoom")
    suspend fun exitLiveRoom(@Query("roomId") roomId:String):BaseResponse<Boolean>

    /**
     * 发红包
     */
    @POST("/liveRoomAnchor/sendRedPacket")
    suspend fun sendRedPacket(@Body body: RequestBody):BaseResponse<Boolean>

    /**
     * 参与抽奖
     */
    @POST("/liveRoom/joinRedPacket")
    suspend fun joinRedPacket(@Body body:RequestBody):BaseResponse<Boolean>


    /**
     * 上车
     */
    @POST("/liveRoomAnchor/sendGoods")
    suspend fun sendGoods(@Body body: RequestBody):BaseResponse<Boolean>

    /**
     * 下车
     */
    @POST("/liveRoomAnchor/sendGoodsRemove")
    suspend fun sendGoodsRemove(@Body body: RequestBody):BaseResponse<Boolean>

    /**
     * 查看当前直播间的商品信息
     */
    @POST("/liveRoom/goodsList")
    suspend fun goodsList(@Query("roomId") roomId:String):BaseResponse<GoodsListEntity>

    /**
     * 点赞直播间
     */
    @POST("/liveRoom/addHotLiveRoom")
    suspend fun addHotLiveRoom(@Query("roomId") roomId:String):BaseResponse<Boolean>

    @POST("/liveRoom/sendRoomGift")
    suspend fun sendRoomGift(@Body body: RequestBody):BaseResponse<Boolean>

}